<template>
  <page-body>
    <view class="page">
      <view class="flex benben-position-layout flex flex-wrap align-center weeManane_flex_0"
        :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
        <view class='flex flex-wrap align-center justify-between flex-sub weeManane_fd0_0'>
          <view class='flex flex-wrap align-center weeManane_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back"
            data-url="1">
            <text class='fu-iconfont2  weeManane_fd0_0_c0_c0'>&#xE794;</text>
          </view>
          <view class='flex flex-wrap align-stretch justify-center'>
            <text class='weeManane_fd0_0_c1_c0'>婚纱管理</text>
          </view>
          <view class='flex flex-wrap align-center justify-end weeManane_fd0_0_c0'>
          </view>
        </view>

      </view>
      <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
      <!---flex布局flex布局开始-->
      <view class="flex flex-wrap align-center justify-between benben-flex-layout weeManane_flex_1">
        <view class='flex flex-wrap align-center weeManane_fd1_0'>
          <image class='weeManane_fd1_0_c0' mode="aspectFit" :src='STATIC_URL+"150.png"'></image>
          <benben-input style="height: 70rpx;line-height: 70rpx;width: 450rpx;" type="text" :placeholder="`输入婚纱编号`"
            confirm-type="done" :maxlength="15" :adjust-position='true' placeholder-style="color:#999;font-size:28rpx"
            v-model="keywords" @confirm="getList" />
        </view>
      </view>

      <!---flex布局flex布局结束-->
      <!---flex布局flex布局开始-->
      <view class="flex flex-wrap align-stretch benben-flex-layout">
        <view class='flex flex-direction flex-wrap align-stretch weeManane_fd2_0' @tap.stop="handleJumpDiy"
          data-type="navigateTo" :data-url="`/pages/grzx/weddingDetails/weddingDetails?aid=${item.aid}`"
          v-for="(item,index) in dataList" :key="index">
          <view class='text-cut' style="width: 300rpx;">
            婚纱编号：{{item.wedding_dress_number}}
          </view>
          <image class='weeManane_fd2_0_c1' mode="aspectFill" :src='item.wedding_dress_image'></image>

          <!-- <view class='flex flex-wrap align-center'>
            <text>档期数</text>
            <text class='weeManane_fd2_0_c2_c1'>{{item.schedule_count}}</text>
          </view> -->
        </view>
        <fu-empty :pagingListLoadedAll="pagingListLoadedAll" :pagingListNoListData="pagingListNoListData"
          :listDataLength="listDataLength" :isLoadInit="isLoadInit"></fu-empty>
      </view>

      <!---flex布局flex布局结束-->


    </view>
  </page-body>
</template>
<script>
  import pagingList from '@/common/mixin/paging_list.js';
  export default {
    components: {},
    mixins: [pagingList],

    data() {
      return {
        "startTime": "",
        "keywords": "",
        "minixPagingListsApi": "",
        "pageingListApiMethod": "",
        "allowOnloadGetList": false,
        "dataList": []
      };
    },
    computed: {

    },
    watch: {},
    onLoad(options) {
      let {
        keyword,
        cid
      } = options
      if (keyword !== undefined) this.keyword = keyword
      if (cid !== undefined) this.cid = cid
      this.getList()
    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {

    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {

    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      getList() {
        this.minixPagingListsApi = global.apiUrls.post666d68dd9ae83;
        this.pageingListApiMethod = 'post';
        this.allowOnloadGetList = false;
        this.pagingListPostDataContent = {
          wedding_dress_number: this.keywords
        }
        this.listData = [];
        this.dataList = this.listData;
        this.pagingListToggle();
      },
      pagingListPostData() {
        return this.pagingListPostDataContent
      }
    }
  };
</script>
<style lang="scss" scoped>
  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: #F8F8F8;
    background-size: 100% auto;
  }

  .weeManane_flex_0 {
    border-bottom: 1px solid #eee;
    background: #fff;
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto !important;
  }

  .weeManane_fd0_0_c1_c0 {
    font-size: 36rpx;
    font-weight: 700;
    color: #333333;
    line-height: 50rpx;
  }

  .weeManane_fd0_0_c0_c0 {
    font-size: 36rpx;
    color: #333;
  }

  .weeManane_fd0_0_c0 {
    width: 120rpx;
  }

  .weeManane_fd0_0 {

    padding: 0rpx 32rpx 0rpx 32rpx;
  }

  .weeManane_flex_1 {
    background: var(--benbenbgColor1);
    padding: 24rpx;
    background-size: 100% auto;
  }

  .weeManane_fd1_0_c0 {
    width: 24rpx;
    height: 24rpx;
    margin: 0rpx 16rpx 0rpx 0rpx;
  }

  .weeManane_fd1_0 {
    background: #F8F8F8;
    border-radius: 34rpx;
    width: 686rpx;
    height: 64rpx;
    line-height: 64rpx;
    padding: 0rpx 24rpx 0rpx 24rpx;
  }

  .weeManane_fd2_0_c2_c1 {
    margin: 0rpx 0rpx 0rpx 16rpx;
    font-size: 32rpx;
    color: rgba(211, 152, 80, 1);
    font-weight: 600;
  }

  .weeManane_fd2_0_c1 {
    width: 280rpx;
    height: 280rpx;
    border-radius: 16rpx;
    margin: 24rpx 0rpx 24rpx 0rpx;
  }

  .weeManane_fd2_0 {
    background: var(--benbenbgColor1);
    width: 344rpx;
    border-radius: 16rpx;
    padding: 24rpx;
    margin: 24rpx 0rpx 0rpx 20rpx;
    background-size: 100% auto;
  }
</style>
